<%@ Page Language="C#" MasterPageFile="~/Employee.master" AutoEventWireup="true" CodeFile="EditCustomer.aspx.cs" Inherits="Pages_Employee_ManageCustomers_EditCustomer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="Label1" runat="server" Font-Bold="True" Text="Edit Customer" CssClass="header"></asp:Label>
<br />
<br />
    <table border="1" class="table01">
        <tr>
            <td style="width: 125px; height: 20px">
                <strong>Customer ID</strong></td>
            <td style="height: 20px; width: 328px;">
                <asp:TextBox ID="txtCustomerID" runat="server" ReadOnly="true"></asp:TextBox>
                </td>
        </tr>
        <tr>
            <td style="width: 125px; height: 20px">
                <strong>Contact Number</strong></td>
            <td style="height: 20px; width: 328px;">
                <asp:TextBox ID="txtContactNumber" runat="server" ReadOnly="true"></asp:TextBox>&nbsp;
                <asp:LinkButton ID="btnRegenerate" runat="server" CausesValidation="False" OnClick="btnRegenerate_Click">Regenerate</asp:LinkButton></td>
        </tr>
        <tr>
            <td style="width: 125px; height: 20px">
                <strong>Full Name</strong></td>
            <td style="height: 20px; width: 328px;">
                <asp:TextBox ID="txtFullName" runat="server" MaxLength="100"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtFullName"
                    ErrorMessage="FullName is required">*</asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 125px; height: 20px">
                <strong>Address</strong></td>
            <td style="width: 328px; height: 20px">
                <asp:TextBox ID="txtAddress" runat="server" MaxLength="200"></asp:TextBox></td>
        </tr>
        <tr>
            <td style="width: 125px">
                <strong>Email</strong></td>
            <td style="width: 328px">
                <asp:TextBox ID="txtEmail" runat="server" MaxLength="50"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtEmail"
                    ErrorMessage="Email field is not a valid email address" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 125px">
                <strong>Phone Number</strong></td>
            <td style="width: 328px">
                <asp:TextBox ID="txtPhoneNumber" runat="server" MaxLength="20"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtPhoneNumber"
                    ErrorMessage="Phone Number field must be between 9 and 20 digits" ValidationExpression="^[0-9]{9,20}$">*</asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 125px">
            </td>
            <td style="width: 328px">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" />
                &nbsp; &nbsp;
                <asp:Button ID="btnReset" runat="server" Text="Reset" OnClick="btnReset_Click" CausesValidation="False" /></td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:ValidationSummary ID="ValidationSummary1" runat="server" HeaderText="Please check the following errors" />
                <br />
                <asp:Label ID="lblMessage" runat="server" />
            </td>
        </tr>
    </table>
</asp:Content>

